import serviceAxios from "@/utils/serviceAxios";

export const getHomeMenu = () => {
	return serviceAxios({
		url: "/home-menu",
		method: "get"
	});
};

export const createTopic = (data) => {
	return serviceAxios({
		url: "/topic",
		method: "post",
		data
	});
};


export const getTopic = () => {
	return serviceAxios({
		url: "/topic",
		method: "get"
	});
};

export const getTopicByTitle= title => {
  return serviceAxios({
    method: 'GET',
    url: `/topic/${title}`
  })
}